package com.gite.nouette.admin.implementation.view;

import com.gite.nouette.admin.contract.controller.ICAdmin;
import com.gite.nouette.admin.contract.view.IVAdmin;
import com.gite.nouette.admin.contract.view.IVManager;
import com.smartgwt.client.types.Side;
import com.smartgwt.client.widgets.tab.Tab;
import com.smartgwt.client.widgets.tab.TabSet;

public class VAdminImpl extends TabSet implements IVAdmin {
	private ICAdmin c;

	public VAdminImpl() {
		setTabBarPosition(Side.BOTTOM);
		setWidth100();
		setHeight100();
	}

	@Override
	public String getName() {
		return getTitle();
	}

	@Override
	public void setName(String name) {
		setTitle(name);
	}

	@Override
	public ICAdmin getC() {
		return this.c;
	}

	@Override
	public void setC(ICAdmin controller) {
		this.c = controller;
	}

	@Override
	public boolean addManager(IVManager VManager) {
		addTab((Tab) VManager);
		return true;
	}
}
